From 52e91f1f74ecb943d5068b4f884af1d1c8dc945e Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Thu, 16 Oct 2014 14:12:13 +0200 Subject: [PATCH] Adwaita: tweak list row transition Thanks to Carlos Soriano expertise. --- gtk/resources/theme/Adwaita/_common.scss | 7 +++++++ gtk/resources/theme/Adwaita/gtk-contained-dark.css | 9 +++++++++ gtk/resources/theme/Adwaita/gtk-contained.css | 9 +++++++++ 3 files changed, 25 insertions(+) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index 361f00ab21..2d8a5fb847 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -2485,6 +2485,13 @@ GtkScrolledWindow { } } +// transition +.list-row, list-row.button { + transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); + &:hover { transition: none; } +} + + /********************* * App Notifications * *********************/ diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index 53d1d4780c..244906776e 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -3695,6 +3695,15 @@ GtkCalendar.header .list-row.button.titlebutton { .list-row:selected .button:insensitive:active > .label, .list-row:selected .button:insensitive:checked > .label { color: inherit; } +.list-row, list-row.button, .header-bar list-row.button.titlebutton, +.titlebar list-row.button.titlebutton, +GtkCalendar.header list-row.button.titlebutton { + transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); } + .list-row:hover, list-row.button:hover, .header-bar list-row.button.titlebutton:hover, + .titlebar list-row.button.titlebutton:hover, + GtkCalendar.header list-row.button.titlebutton:hover { + transition: none; } + /********************* * App Notifications * *********************/ diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index 77defbeea4..c52a29cb14 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -3856,6 +3856,15 @@ GtkCalendar.header .list-row.button.titlebutton { .list-row:selected .button:insensitive:active > .label, .list-row:selected .button:insensitive:checked > .label { color: inherit; } +.list-row, list-row.button, .header-bar list-row.button.titlebutton, +.titlebar list-row.button.titlebutton, +GtkCalendar.header list-row.button.titlebutton { + transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); } + .list-row:hover, list-row.button:hover, .header-bar list-row.button.titlebutton:hover, + .titlebar list-row.button.titlebutton:hover, + GtkCalendar.header list-row.button.titlebutton:hover { + transition: none; } + /********************* * App Notifications * *********************/ -- 2.30.2